export function circular_option (data) {
  return {
    series: [
      {
        name: '冷量统计',
        type: 'pie',
        radius: ['55%', '70%'],
        avoidLabelOverlap: false,
        itemStyle: {
        },
        label: {
          show: false,
          position: 'center'
        },
        emphasis: {
          label: {
            show: false,
          }
        },
        labelLine: {
          show: false
        },
        data: [
          {
            name: "可用冷量",
            value: data[0],
            itemStyle: {
              color: {
                type: 'linear',
                x: 1,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [
                  {
                    offset: 0,
                    color: 'rgba(36,222,104,1)'
                  },
                  {
                    offset: 1,
                    color: 'rgba(0,156,190,0.16)'
                  },
                ]
              }
            }
          },
          {
            name: "已用冷量",
            value: data[1],
            itemStyle: {
              color: {
                type: 'linear',
                x: 1,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [
                  {
                    offset: 1,
                    color: '#04E3FF'
                  },
                  {
                    offset: 0,
                    color: 'rgba(3,227,255,0)'
                  }
                ]
              }
            }
          },
        ]
      }
    ]
  }
}